package com.carlinfo.shop.users.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.carlinfo.shop.common.util.PageInfoUtil;
import com.carlinfo.shop.users.pojo.AAdmins;

public interface IUsersService
{

	/* == 管理员操作开始 == */
	/**
	 * 保存一条管理员
	 * @param admins
	 * @return
		{
			// 响应码
			"code":"0",
			// 响应信息
			"info":"",
			// 数据
			"data":
			{
				// 影响条数;sql执行以后对数据库的影响条数
				"effect":"",
				// id,保存的时候要主键
				"id":""
			}
		}
	 */
	
	JSONObject saveOneAdminsService(AAdmins admins);

	JSONObject updateOneAdminsService(AAdmins admins);

	JSONObject deleteOneAdminsService(Map<String, Object> condMap);

	AAdmins findOneAdminsService(Map<String, Object> condMap);

	List<AAdmins> findCondListService(PageInfoUtil pageInfoUtil,Map<String, Object> condMap);

}
